package com.zmc.lostfound.auth.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zmc.lostfound.auth.entity.UserEntity;
import com.zmc.lostfound.auth.vo.UserDetailInfoVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author ZMC
 * @email 2869581855@qq.com
 * @date 2023-07-05 15:17:37
 */
@Repository
public interface UserDao extends BaseMapper<UserEntity> {

    /**
     * 按用户id或手机号查询用户详情信息
     *
     * @param userId 用户id
     * @param phone  手机号
     * @return UserDetailInfoVO
     */
    UserDetailInfoVO queryDetailInfo(@Param("userId") Long userId, @Param("phone") String phone);

    /**
     * 分页查询用户详情信息
     *
     * @return List<UserDetailInfoVO>
     */
    List<UserDetailInfoVO> queryPage();

}
